//
//  SGBaseHUD.h
//  SemiGroup
//
//  Created by 陈无忌 on 12/11/15.
//  Copyright © 2015 陈无忌. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MBProgressHUD/MBProgressHUD.h>

typedef void (^HUDCompletionBlock)(void);

@interface HUD : NSObject

+ (MBProgressHUD*)showUIBlockingIndicator;

+ (MBProgressHUD*)showUIBlockingIndicatorWithText:(NSString*)str;

+ (MBProgressHUD*)showUIBlockingIndicatorWithText:(NSString*)str withTimeout:(int)seconds;

+ (MBProgressHUD*)showUIBlockingProgressIndicatorWithText:(NSString*)str andProgress:(float)progress;

+ (MBProgressHUD*)showAlertWithTitle:(NSString*)titleText text:(NSString*)text;

+ (MBProgressHUD*)showTimedAlertWithTitle:(NSString*)titleText text:(NSString*)text withTimeout:(int)seconds;

+ (MBProgressHUD*)showAlertWithTitle:(NSString*)titleText text:(NSString*)text target:(id)t action:(SEL)sel;

+ (void)hudShowWithString:(NSString *)msg;

+ (void)hudShowWithString:(NSString *)msg withDetailText:(NSString *)detailText;

+ (void)hudShowWithString:(NSString *)msg withCompletion:(HUDCompletionBlock)completionBlock;

+ (void)hideUIBlockingIndicator;

@end
